﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kovan.DAL.Config;
using Kovan.Model.Entity.Config;

namespace Kovan.BLL.Config
{
    public class BNewsData
    {
        DNewsData dal = new DNewsData();

        #region 当前类的实例
        private static readonly BNewsData Instances = new BNewsData();

        private BNewsData() { }

        public static BNewsData GetInstances()
        {
            return Instances;
        }
        #endregion

        public tb_newsData GetModel(long id)
        {
            return dal.GetModel(id);
        }

        public int Add(tb_newsData model)
        {
            return dal.Add(model);
        }

        //public int Delete(long id)
        //{
        //    throw new NotImplementedException();
        //}

        public int Update(tb_newsData model)
        {
            return dal.Update(model);
        }

        //public int BatchDelete(IEnumerable<string> ids)
        //{
        //    throw new NotImplementedException();
        //}
    }
}
